/**
 * 此混入会引入至fieldMxin及refMixin中
 */
export default {
  methods: {
    showDialog(dialogName, formData = {}, extraData = {}, title = '') {
      return this.getFormRef().showDialog(dialogName, formData, extraData, title)
    },
    showDrawer(drawerName, formData = {}, extraData = {}, title = '') {
      return this.getFormRef().showDrawer(drawerName, formData, extraData, title)
    },
    async postService(serviceKey, params) {
      return await this.getFormRef().postService(serviceKey, params)
    },
    async getService(serviceKey, setFormFlag) {
      return await this.getFormRef().getService(serviceKey, setFormFlag)
    },
  },
}
